import interfaceClass from './Interface.js'
import config from './config.js'

class centralControl {
  centralControl(str, fun, data) {
    interfaceClass[str](config.getStr("url") + config.getStr(str), fun, data);
  }
}

let centralcontrol = new centralControl();
export default centralcontrol
